DicomObjects.NET Core Documentation
DicomObjects.DicomWeb Namespace / WebContent Class / WebContent Constructor
The data from which to create the web content
The Content type to create. In many cases the main type will be "multipart/related" and sub-type will be "application/dicom", "application/dicom+xml" and "application/json"
The transfer syntax to use to encode the DICOM data
Cotrols whether to pull large data attributes into separate parts
A delegate to generate a URI for each items of bulk data, when passed the path to the attribute, or which returns null if the data is not to be replaced



In This Topic
    WebContent Constructor
    In This Topic
    Create a new recursive web content from a collection of DicomObjects.DicomDataSet objects.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal DataSets As DicomDataSetCollection, _
       ByVal Content As ContentType, _
       ByVal TransferSyntax As String, _
       ByVal MakeBulkData As Boolean, _
       ByVal GetBulkDataUri As Func(Of SequencePath,Uri) _
    )
    'Usage
     
    
    Dim DataSets As DicomDataSetCollection
    Dim Content As ContentType
    Dim TransferSyntax As String
    Dim MakeBulkData As Boolean
    Dim GetBulkDataUri As Func(Of SequencePath,Uri)
     
    Dim instance As New WebContent(DataSets, Content, TransferSyntax, MakeBulkData, GetBulkDataUri)

    Parameters

    DataSets
    The data from which to create the web content
    Content
    The Content type to create. In many cases the main type will be "multipart/related" and sub-type will be "application/dicom", "application/dicom+xml" and "application/json"
    TransferSyntax
    The transfer syntax to use to encode the DICOM data
    MakeBulkData
    Cotrols whether to pull large data attributes into separate parts
    GetBulkDataUri
    A delegate to generate a URI for each items of bulk data, when passed the path to the attribute, or which returns null if the data is not to be replaced
    Example
    public static Uri ReplaceBulkDataByExternalUri(SequencePath path) { if (path.TargetAttribute.RawData != null && path.TargetAttribute.RawData.Length > BulkDataThreshold || path.TargetAttribute.KeywordCode == Keyword.PixelData) return new Uri(BaseUri + path.Format("/bulkdata/{1}/{2}/{3}", "/{0:X8}/{1}", "/{0:X8}")); return null; }
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also